package articleStudy.Enum;

/**
 * @description： 自定义枚举方法
 */
public class Pizza {
    private PizzaStatus status;
    public enum PizzaStatus{
        ORDERED,
        READY,
        DELIVERED
    }
    public boolean isDeliverable(){
        if(getStatus()==PizzaStatus.READY){
            return  true;
        }
        return false;
    }

    public PizzaStatus getStatus() {
        return status;
    }

    public void setStatus(PizzaStatus status) {
        this.status = status;
    }
}
